ConfigTableElement = ConfigTableElement or Class("ConfigTableElement")

---@diagnostic disable-next-line: duplicate-set-field
function ConfigTableElement:ctor(configTable)
    self._configTable = configTable
    self._datas = {}
    for i = 1, #configTable._headers do
        local header = configTable._headers[i]
        self._datas[header.id] = header.valueInitor()
    end
end

function ConfigTableElement:getData(id)
    return self._datas[id]
end

function ConfigTableElement:setData(id, value)
    self._datas[id] = value
end